package com.sw.example.controller;

import com.sw.example.entity.ProcessRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private ProcessRecord processRecord;

    @RequestMapping("/test")
    public ProcessRecord getProcessRecord() {
        processRecord.setDesc("实时");
        return processRecord;
    }

}
